// optimized-image.component.less
.optimized-image-container {
  position: relative;
  overflow: hidden;
  background-color: #f5f7fa;
  width: 100%;
  height: 100%;

  &.loaded {
    animation: fadeIn 0.3s ease-in-out;

    .optimized-image {
      opacity: 1;
    }
    .image-placeholder {
      opacity: 0;
      pointer-events: none;
    }
  }
}

.optimized-image {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #909399;
  font-size: 24px;
  transition: opacity 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
